package top.itlir.edc.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import top.itlir.edc.domain.Role;
import top.itlir.edc.domain.User;

public interface IRoleService{

	Page<Role> findAll(Specification<Role> spec, Pageable pageable);

	void save(Role model, Integer[] permissions, String menuIds);

	List<Role> findAll2();

	List<Role> findRolesByUser(User user);

}
